home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-07 | 712 b | 30 lines | [TEXT/DWat] |
- % Usage: readgsc GSCfilename
- % Reads a GSC file and stores values in x,y,p and l
-
- % Sets:
- % x = RA(2000) decimal hours
- % y = DEC(2000) decimal degrees
- % p = magnitude (also saved in r0)
- % l = label (00001, 00002, etc.)
-
- datafile &1
- % skip over the header of 53 lines
- datalines 54 53 maxpts +
- datacol 6 14 % set a mask to read the RA
- readcolumn x 1
- datacol 15 23 % mask to read the DEC
- readcol y 1
- rpn <x 15 / >x
- datacolumns 29 33 % mask to read magnitude
- readcol p 1
- rpn <p >r0 % save magtitudes in r0
- datacolumns 1 5 % mask to read labels
- readcol l 1
-
- drawtitle Hubble Guide Stars for field \f
-
- % Close the data file to save memory
- closewindow &1
-
- % Close myself since I am done
- close